namespace aprogblog.Domain {
    
    public class Entry {

        public string Id { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        
        #region equals
		
		public override bool Equals(object obj) {
            if (ReferenceEquals(null, obj)) return false;
            if (ReferenceEquals(this, obj)) return true;
            if (obj.GetType() != typeof (Entry)) return false;
            return Equals((Entry) obj);
        }

        public bool Equals(Entry obj) {
            if (ReferenceEquals(null, obj)) return false;
            if (ReferenceEquals(this, obj)) return true;
            return Equals(obj.Id, Id);
        }

        public override int GetHashCode() {
            return (Id != null ? Id.GetHashCode() : 0);
        }
 
	    #endregion    
    }
}